#include "Menu.h"



void Menu::Init(XYZ center, XYZ pos,XYZ scale,const char* fName)
{
	m_center=center; m_position=pos; m_scale=scale; m_fileName=fName;
	m_button.left=292; m_button.top=247; m_button.right=460; m_button.bottom=298; //top X,Y / bottom X, Y
	
}
bool Menu::Update(HWND hWnd)
{
	POINT Click;

	GetCursorPos(&Click);									//Gets the mouse position
	ScreenToClient(hWnd,&Click);							//Converts screen to local of mouse coordinates
	if(PtInRect(&m_button,Click))
	{
		return true;
	}
	return false;
}